/*  1:   */ package org.jetbrains.jps.model.impl;
/*  2:   */ 
/*  3:   */

import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.JpsUrlList;
import org.jetbrains.jps.model.ex.JpsElementBase;

import java.util.ArrayList;
import java.util.List;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */ 
/*  9:   */ public class JpsUrlListImpl
/* 10:   */   extends JpsElementBase<JpsUrlListImpl>
/* 11:   */   implements JpsUrlList
/* 12:   */ {
/* 13:29 */   private List<String> a = new ArrayList();
/* 14:   */   
/* 15:   */   public JpsUrlListImpl() {}
/* 16:   */   
/* 17:   */   public JpsUrlListImpl(JpsUrlListImpl paramJpsUrlListImpl)
/* 18:   */   {
/* 19:35 */     this.a.addAll(paramJpsUrlListImpl.a);
/* 20:   */   }
/* 21:   */   
/* 22:   */   @NotNull
/* 23:   */   public JpsUrlListImpl createCopy()
/* 24:   */   {
/* 25:41 */     void tmp8_5 = new JpsUrlListImpl(this);
/* 26:41 */     if (tmp8_5 == null) {
/* 27:41 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/JpsUrlListImpl", "createCopy" }));
/* 28:   */     }
/* 29:41 */     return tmp8_5;
/* 30:   */   }
/* 31:   */   
/* 32:   */   @NotNull
/* 33:   */   public List<String> getUrls()
/* 34:   */   {
/* 35:47 */     List tmp4_1 = this.a;
/* 36:47 */     if (tmp4_1 == null) {
/* 37:47 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/jps/model/impl/JpsUrlListImpl", "getUrls" }));
/* 38:   */     }
/* 39:47 */     return tmp4_1;
/* 40:   */   }
/* 41:   */   
/* 42:   */   public void addUrl(@NotNull String paramString)
/* 43:   */   {
/* 44:52 */     if (paramString == null) {
/* 45:52 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsUrlListImpl", "addUrl" }));
/* 46:   */     }
/* 47:52 */     this.a.add(paramString);
/* 48:53 */     fireElementChanged();
/* 49:   */   }
/* 50:   */   
/* 51:   */   public void removeUrl(@NotNull String paramString)
/* 52:   */   {
/* 53:58 */     if (paramString == null) {
/* 54:58 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsUrlListImpl", "removeUrl" }));
/* 55:   */     }
/* 56:58 */     this.a.remove(paramString);
/* 57:59 */     fireElementChanged();
/* 58:   */   }
/* 59:   */   
/* 60:   */   public void applyChanges(@NotNull JpsUrlListImpl paramJpsUrlListImpl)
/* 61:   */   {
/* 62:63 */     if (paramJpsUrlListImpl == null) {
/* 63:63 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/impl/JpsUrlListImpl", "applyChanges" }));
/* 64:   */     }
/* 65:63 */     if (!this.a.equals(paramJpsUrlListImpl.a))
/* 66:   */     {
/* 67:64 */       this.a.clear();
/* 68:65 */       this.a.addAll(paramJpsUrlListImpl.a);
/* 69:66 */       fireElementChanged();
/* 70:   */     }
/* 71:   */   }
/* 72:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.impl.JpsUrlListImpl

 * JD-Core Version:    0.7.0.1

 */